<%@ page contentType="text/html;charset=UTF-8" language="java" %>
    <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
        <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
            <% String path=request.getContextPath(); String basePath=request.getScheme() + "://" +
                request.getServerName() + ":" + request.getServerPort() + path + "/" ; %>
                <html>

                <head>
                    <title>Login</title>
                    <link rel="shortcut icon" href="<%= basePath%>img/favicon.ico" type="image/x-icon" />
                    <link rel="stylesheet" href="./css/login.css" type="text/css">
                    <link href="css/login.css" type="text/css" rel="stylesheet" />
                    <script type="text/javascript" src="js/jump.js"></script>
                </head>

                <body class="bgimg">
                    <div>
                        <div class="login-box">
                            <form action="loginController/homePage" method="post" name="f">

                                <h2>Login</h2>

                                <div class="login-field">
                                    <img src="<%= basePath%>img/user.png" alt="用户图标" />
                                    <label for="username"></label><input type="text" placeholder="请输入用户名"
                                        name="username" id="username" />
                                </div>

                                <div class="login-field">
                                    <img src="<%= basePath%>img/password.png" alt="密码图标" />
                                    <label for="password"></label><input type="password" placeholder="请输入密码"
                                        name="password" id="password" />
                                </div>

                                <div class="login-sub">
                                    <button type="submit">登录</button>
                                    <button type="button" onclick="forRegister()">去注册!</button>
                                </div>

                            </form>
                        </div>
                    </div>
                </body>

                </html>